package com.lifuixng.picturebackend.model.mapping;

import com.lifuixng.picturebackend.model.dto.space.SpaceAddRequest;
import com.lifuixng.picturebackend.model.dto.space.SpaceEditRequest;
import com.lifuixng.picturebackend.model.dto.space.SpaceUpdateRequest;
import com.lifuixng.picturebackend.model.entity.Space;
import com.lifuixng.picturebackend.model.vo.space.SpaceVO;
import org.mapstruct.Mapper;

/**
 * @Author Mr.LiFuXing
 * @Date 2024/12/29 21:35
 * @Title SpaceMapping
 * @Package com.lifuixng.picturebackend.model.mapping
 */
@Mapper(componentModel = "spring")
public interface SpaceMapping {

    Space spaceVOToSpace(SpaceVO spaceVO);

    SpaceVO spaceToSpaceVO(Space space);


    Space spaceUpdateRequestToSpace(SpaceUpdateRequest spaceUpdateRequest);

    Space spaceEditRequestToSpace(SpaceEditRequest spaceEditRequest);

    Space spaceAddRequestToSpace(SpaceAddRequest spaceAddRequest);
}
